﻿@model List<PaymentHelper.Core.RelatedObject.OrderItem>
           
@if (Model != null && Model.Count > 0)
{
<div class="ph_showcart">
    <fieldset>
        <legend>@ViewBag.Resources["DefaultPaymentFlow.ShowCart"] (@ViewBag.Unit)</legend>
        <table>
            <thead>
                <tr>
                    <td>@ViewBag.Resources["DefaultPaymentFlow.ID"]</td>
                    <td>@ViewBag.Resources["DefaultPaymentFlow.ProductName"]</td>
                    <td>@ViewBag.Resources["DefaultPaymentFlow.Quantity"]</td>
                    <td>@ViewBag.Resources["DefaultPaymentFlow.UnitPrice"]</td>
                    <td>@ViewBag.Resources["DefaultPaymentFlow.TotalPrice"]</td>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.Id</td>
                        <td>@item.Name</td>
                        <td>@item.Quantiy</td>
                        <td>@item.Price</td>
                        <td>@item.TotalPrice</td>
                    </tr>
                }
            </tbody>
        </table>
    </fieldset>    
</div>
}